
#ifndef PowerUtils_H
#define PowerUtils_H
#pragma once
//#include "..\define\DefineComm.h"
//#include "..\define\DefineUser.h"
//#include "..\define\DefineLink.h"
class PowerUtils
{
public:
	PowerUtils(void);
	~PowerUtils(void);

    static int getGreenDiamond( );
    static int getBlueDiamond( );
    static int getRedDiamond( );
    static int getGoldDiamond( );
    static int getUserPower(  unsigned long dwDiamond, int type ); 
  //  static int getUserPower(  USER_EDIT &userinfo, int type ); 
  //  static int getUserPower(  USER_ADMIN &userinfo, int type ); 
    static int getAdminLevel( );
    static int getMyJoinPower( int nMode, int TypeId );
    static int getMemberPower( int nMode, int TypeId, int UserId );
    static int getMyMoney( );
    static DWORD getServerTime( );
    static CString getUserIp( );
    static CString getMyWanIp( );
    static CString getMyLanIp( );
    static CString getMyUpIp( );
    static unsigned short getMyUDPPort( );
    static unsigned short getMyTcpPort( );
    static unsigned short getLocalUDPPort( );
    static unsigned short getLocalTcpPort( ); 
};
#endif // PowerUtils_H